package com.cynteka.cyfoman.core;

import java.util.Set;

/**
 * User: Sergey
 * Date: 10.08.11
 * Time: 14:30
 */
public interface RoleProvider {

    public static final String ROLE_PROVIDER_KEY = "com.cynteka.ROLE_PROVIDER_KEY";

    boolean isAuthorized();
    String getCurrentUser();
    Set<String> getCurrentRoles();
    boolean hasRole(String role);
    boolean hasAtLeastOneRole(Set<String> roles);
}
